﻿<UserControl x:Class="QLab.UserControls.RibbonView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 mc:Ignorable="d" >
	<ribbon:Ribbon IsMinimized="False">
		<!--Application menu-->
		<ribbon:Ribbon.ApplicationMenu>
			<ribbon:RibbonApplicationMenu>
				<ribbon:RibbonApplicationMenuItem Header="New Solution" x:Name="ramiNewSolution" Command="{Binding Path=CreateSolutionCommand}" ImageSource="/QLab;component/Images/Action_filenew_32x32.png" />
				<ribbon:RibbonApplicationMenuItem Header="Open Solution" x:Name="ramiOpenSolution" Command="{Binding Path=OpenSolutionCommand}" ImageSource="/QLab;component/Images/Folder_grey_open_32x32.png" />
					<!-- ribbon:RibbonApplicationMenuItem Header="Project" x:Name="ramiOpenProject" Click="ramiOpenProject_OnClick"/>
					<ribbon:RibbonApplicationMenuItem Header="File" />
				</ribbon:RibbonApplicationMenuItem -->
				<ribbon:RibbonApplicationMenuItem Header="Save" IsEnabled="False" />
				<!-- ribbon:RibbonApplicationSplitMenuItem Header="Save As">
					<ribbon:RibbonApplicationMenuItem Header="QLab File" />
					<ribbon:RibbonApplicationMenuItem Header="M File" />
				</ribbon:RibbonApplicationSplitMenuItem -->

				<ribbon:RibbonSeparator />

				<ribbon:RibbonApplicationMenuItem Header="Close" IsEnabled="False" />

				<!--Buttons in the bottom of the menu-->
				<ribbon:RibbonApplicationMenu.FooterPaneContent>
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition />
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<ribbon:RibbonButton Grid.Column="1" Label="QLab Preferences" IsEnabled="False" 
											 SmallImageSource="/QLab;component/Images/Package_settings_16x16.png" />
						<ribbon:RibbonButton Grid.Column="2" Label="Exit" x:Name="ramiExit" Command="{Binding Path=CloseApplicationCommand}"
											 SmallImageSource="/QLab;component/Images/Action_exit_16x16.png" />
					</Grid>
				</ribbon:RibbonApplicationMenu.FooterPaneContent>
			</ribbon:RibbonApplicationMenu>            
		</ribbon:Ribbon.ApplicationMenu>
		
		<!--Tabovi-->
		<ribbon:RibbonTab Header="Home">
			<ribbon:RibbonGroup Header="Grupa 1">
				<ribbon:RibbonButton Content="New File" Label="New File" ToolTip="Create new file" LargeImageSource="/QLab;component/Images/Action_filenew_32x32.png" />
			</ribbon:RibbonGroup>
			<ribbon:RibbonGroup Header="Grupa 2">
				<ribbon:RibbonButton Label="Save" LargeImageSource="/QLab;component/Images/save_32x32.png" ToolTip="Save current document" Command="{Binding Path=TabController.CurrentTabSaveCommand}" />
			</ribbon:RibbonGroup>
		</ribbon:RibbonTab>
	</ribbon:Ribbon>
</UserControl>
